package com.cgsrp.cgsrp_shopping.service;

import com.cgsrp.cgsrp_shopping.domain.Order;
import com.cgsrp.utils.Result;

public interface OrderService{


    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Result creatOrder(int[] ids, Integer userId, Double totalCost);

    Result list(int userId, Integer curPage, Integer pageSize);

    int userAfterPay(String orderId,String userId);

    Result update(Order order);

    Result cancel(Long id);

    Result confirmReceipt(Order order, int[] creatByIds);

    Result deliver(Long orderId, Integer messageId,String trackNum);


}
